{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { getStyle as getCheckboxStyle } from '../../checkbox/style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { genTreeStyle } from '../../tree/style';\n// =============================== Base ===============================\nvar genBaseStyle = function genBaseStyle(token) {\n  var componentCls = token.componentCls,\n    treePrefixCls = token.treePrefixCls,\n    colorBgElevated = token.colorBgElevated;\n  var treeCls = \".\".concat(treePrefixCls);\n  return [// ======================================================\n  // ==                     Dropdown                     ==\n  // ======================================================\n  _defineProperty({}, \"\".concat(componentCls, \"-dropdown\"), [{\n    padding: \"\".concat(token.paddingXS, \"px \").concat(token.paddingXS / 2, \"px\")\n  },\n  // ====================== Tree ======================\n  genTreeStyle(treePrefixCls, mergeToken(token, {\n    colorBgContainer: colorBgElevated\n  })), _defineProperty({}, treeCls, {\n    borderRadius: 0,\n    '&-list-holder-inner': _defineProperty({\n      alignItems: 'stretch'\n    }, \"\".concat(treeCls, \"-treenode\"), _defineProperty({}, \"\".concat(treeCls, \"-node-content-wrapper\"), {\n      flex: 'auto'\n    }))\n  }),\n  // ==================== Checkbox ====================\n  getCheckboxStyle(\"\".concat(treePrefixCls, \"-checkbox\"), token),\n  // ====================== RTL =======================\n  {\n    '&-rtl': _defineProperty({\n      direction: 'rtl'\n    }, \"\".concat(treeCls, \"-switcher\").concat(treeCls, \"-switcher_close\"), _defineProperty({}, \"\".concat(treeCls, \"-switcher-icon svg\"), {\n      transform: 'rotate(90deg)'\n    }))\n  }])];\n};\n// ============================== Export ==============================\nexport default function useTreeSelectStyle(prefixCls, treePrefixCls) {\n  return genComponentStyleHook('TreeSelect', function (token) {\n    var treeSelectToken = mergeToken(token, {\n      treePrefixCls: treePrefixCls\n    });\n    return [genBaseStyle(treeSelectToken)];\n  })(prefixCls);\n}","map":{"version":3,"names":["getStyle","getCheckboxStyle","genComponentStyleHook","mergeToken","genTreeStyle","genBaseStyle","token","componentCls","treePrefixCls","colorBgElevated","treeCls","padding","paddingXS","colorBgContainer","borderRadius","alignItems","flex","direction","transform","useTreeSelectStyle","prefixCls","treeSelectToken"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/tree-select/style/index.js"],"sourcesContent":["import { getStyle as getCheckboxStyle } from '../../checkbox/style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport { genTreeStyle } from '../../tree/style';\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    treePrefixCls,\n    colorBgElevated\n  } = token;\n  const treeCls = `.${treePrefixCls}`;\n  return [\n  // ======================================================\n  // ==                     Dropdown                     ==\n  // ======================================================\n  {\n    [`${componentCls}-dropdown`]: [{\n      padding: `${token.paddingXS}px ${token.paddingXS / 2}px`\n    },\n    // ====================== Tree ======================\n    genTreeStyle(treePrefixCls, mergeToken(token, {\n      colorBgContainer: colorBgElevated\n    })), {\n      [treeCls]: {\n        borderRadius: 0,\n        '&-list-holder-inner': {\n          alignItems: 'stretch',\n          [`${treeCls}-treenode`]: {\n            [`${treeCls}-node-content-wrapper`]: {\n              flex: 'auto'\n            }\n          }\n        }\n      }\n    },\n    // ==================== Checkbox ====================\n    getCheckboxStyle(`${treePrefixCls}-checkbox`, token),\n    // ====================== RTL =======================\n    {\n      '&-rtl': {\n        direction: 'rtl',\n        [`${treeCls}-switcher${treeCls}-switcher_close`]: {\n          [`${treeCls}-switcher-icon svg`]: {\n            transform: 'rotate(90deg)'\n          }\n        }\n      }\n    }]\n  }];\n};\n// ============================== Export ==============================\nexport default function useTreeSelectStyle(prefixCls, treePrefixCls) {\n  return genComponentStyleHook('TreeSelect', token => {\n    const treeSelectToken = mergeToken(token, {\n      treePrefixCls\n    });\n    return [genBaseStyle(treeSelectToken)];\n  })(prefixCls);\n}"],"mappings":";AAAA,SAASA,QAAQ,IAAIC,gBAAgB,QAAQ,sBAAsB;AACnE,SAASC,qBAAqB,EAAE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